<template>
    <div>
        <ul>
            <li v-for="item in list" :key="item.id">{{ item }}</li>
        </ul>
        <button @click="btn">调整顺序</button>
    </div>
</template>

<script>
export default {
    components: {},
    props: {},
    data() {
        return {
            list: ['帅哥', '美女', '程序员'],
        }
    },
    computed: {},
    watch: {},
    created() {},
    methods: {
        btn() {
            this.list.push(this.list[0])
            this.list.splice(this.list[0], 1)
        },
    },
}
</script>

<style scoped></style>
